net: Use ARRAY_SIZE at appropriate places
authorAxel Lin <[email protected]>
Wed, 3 Jul 2013 03:24:18 +0000 (11:24 +0800)
committerJoe Hershberger <[email protected]>
Mon, 19 Aug 2013 17:34:18 +0000 (12:34 -0500)
commita62cd29c985cf87b55a76f47582609119bd4b7a1
tree0d21e1bec674bc3f2df139d0c51b40a219d92350
parent25634210af785e36cf73a5e9a103c8cac5d84a26
net: Use ARRAY_SIZE at appropriate places

Use ARRAY_SIZE instead of having similar implementation in each drivers.
The NUMELEMS defined in drivers/net/npe/include/IxOsalTypes.h is not used
at all, so this patch removes it instead of converting it to use ARRAY_SIZE.

Signed-off-by: Axel Lin <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Ben Warren <[email protected]>
Cc: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: TsiChungLiew <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: York Sun <[email protected]>
drivers/net/ax88180.c
drivers/net/fsl_mcdmafec.c
drivers/net/lan91c96.c
drivers/net/mcffec.c
drivers/net/mcfmii.c
drivers/net/ne2000.c
drivers/net/npe/IxEthDBFeatures.c
drivers/net/npe/IxOsalIoMem.c
drivers/net/npe/include/IxEthDBPortDefs.h
drivers/net/npe/include/IxOsalTypes.h